import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import about from '@/pages/about'
import work from '@/pages/work'
import blog from '@/pages/blog'
import message from '@/pages/message'
import LeaveWord from '@/pages/LeaveWord'
import workSingle from '@/pages/workSingle'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld,
    },
    {
      path: '/LeaveWord',
      name: 'LeaveWord',
      component: LeaveWord,
    },
     {
      path: '/work',
      name: 'work',
      component: work,
    },
    {
      path: '/blog',
      name: 'blog',
      component: blog,
    },
    {
      path: '/message',
      name: 'message',
      component: message,
    },
    {
      path: '/workSingle/:id',
      name: 'workSingle',
      component: workSingle,
    },
  ]
})
